home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / brit.xml < prev    next >
Text File  |  2002-08-30  |  3KB  |  99 lines

  1. <search function="brit">
  2.   <name>Encyclopedia Britannica</name>
  3.   <description>
  4.     Search Encylopedia Britannica.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.       <table class="helpboxDescTable">
  7.           <tr><td>/all</td><td> - </td><td>All Britannica.com</td></tr>
  8.           <tr><td>/eb</td><td> - </td><td>Encyclopedia Britannica</td></tr>
  9.           <tr><td>/bse</td><td> - </td><td>Britannica Student Encyclopedia</td></tr>
  10.           <tr><td>/bce</td><td> - </td><td>Britannica Concise Encyclopedia</td></tr>
  11.           <tr><td>/web</td><td> - </td><td>Websites</td></tr>
  12.           <tr><td>/vm</td><td> - </td><td>Video and Media</td></tr>
  13.           <tr><td>/mag</td><td> - </td><td>Magazines</td></tr>
  14.           <tr><td>/dict</td><td> - </td><td>Dictionary</td></tr>
  15.           <tr><td>/thes</td><td> - </td><td>Thesaurus</td></tr>
  16.         
  17.       </table>
  18.     <div class="helpboxDescLabels">Examples:</div>
  19.     <table class="helpboxDescTable">
  20.           <tr><td>brit tuba</td></tr>
  21.       </table>
  22.   </description>
  23.   <category>Reference</category>
  24.   <link>http://www.britannica.com/</link>
  25.   <contributor>Brent Beardsley</contributor>
  26.   
  27.   <form name="brit_mag_search"
  28.     action="http://www.britannica.com/search/magazine"
  29.     method="get">
  30.     <input type="hidden" name="query" />
  31.  
  32.   </form>
  33.  
  34.   <form name="brit_search"
  35.         action="http://www.britannica.com/search"
  36.         method="get">
  37.     <input type="hidden" name="query"/>
  38.     <input type="hidden" name="ct"/>
  39.     <input type="hidden" name="fuzzy" value="N" />
  40.   </form>
  41.   
  42.   <script><![CDATA[
  43.     function brit(q)
  44.     {
  45.       if( nullArgs("brit", q) )
  46.         return false;
  47.  
  48.       var args = parseArgs(q, "all, eb, bse, bce, web, vm, dict, thes, mag");
  49.       if( q == "" )
  50.         openSearchWindow("http://www.britannica.com/");
  51.       else if( args.switches.length == 1 )
  52.       {
  53.         switch( args.switches[0].name )
  54.         {
  55.           case "all":
  56.             document.brit_search.ct.value = ""; break;
  57.           case "eb":
  58.             document.brit_search.ct.value = "eb"; break;
  59.           case "bse":
  60.             document.brit_search.ct.value = "ebi"; break;
  61.           case "bce":
  62.             document.brit_search.ct.value = "gen1"; break;
  63.           case "web":
  64.             document.brit_search.ct.value = "igv"; break;
  65.           case "vm":
  66.             document.brit_search.ct.value = "vastvideo"; break;
  67.           case "dict":
  68.             document.brit_search.ct.value = "dict"; break;
  69.           case "thes":
  70.             document.brit_search.ct.value = "thes"; break;
  71.       case "mag":
  72.         document.brit_mag_search.query.value = args.q;
  73.         submitForm(brit_mag_search);
  74.         return false;
  75.         break;
  76.           default:
  77.             document.brit_search.ct.value = args.switches[0].name; break;
  78.         }
  79.         document.brit_search.query.value = args.q;
  80.         submitForm(brit_search);
  81.       }
  82.       else if( args.switches.length > 1 )
  83.         nullArgs("brit","?");
  84.       else
  85.       {
  86.         document.brit_search.ct.value = "";
  87.         document.brit_search["query"].value = args.q;
  88.         submitForm(brit_search);
  89.       }
  90.     }
  91.   ]]></script>
  92.  
  93.   <copyright>
  94.     Copyright (c) 2002 David Bau
  95.     Distributed under the terms of the
  96.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  97.   </copyright>
  98. </search>
  99.